<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('config', function ( Blueprint $table ) {
            $table->string('name')->nullable()->comment('网站名称');
            $table->string('url')->nullable()->comment('网站域名');
            $table->string('title')->nullable()->comment('SEO标题');
            $table->string('word')->nullable()->comment('关键词');
            $table->text('riptive')->nullable()->comment('描述信息');
            $table->string('image')->nullable()->comment('网站图标');
            $table->string('record')->nullable()->comment('icp备案号');
            $table->string('info')->nullable()->comment('版权信息');
            $table->string('company')->nullable()->comment('公司名');
            $table->string('qq')->nullable()->comment('QQ');
            $table->string('box')->nullable()->comment('电子邮箱');
            $table->string('phone')->nullable()->comment('手机');
            $table->string('fixed')->nullable()->comment('固定号码');
            $table->string('fax')->nullable()->comment('传真');
            $table->tinyInteger('status')->default(1)->comment('系统设置，1：后台，2：博客');
            $table->timestamps();
        }
        );
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('config');
    }
}
